import axios from "@/utils/api.request";

// 角色添加
export const rolesAdd = info => {
  return axios.request({
    url: "role/add",
    data: info,
    method: "post"
  });
};
// 角色修改
export const rolesUpdate = info => {
  return axios.request({
    url: "role/update",
    data: info,
    method: "post"
  });
};
// 角色删除
export const rolesDel = info => {
  return axios.request({
    url: "role/del",
    data: info,
    method: "post"
  });
};
// 角色查询
export const rolesPage = info => {
  return axios.request({
    url: "role/page",
    data: info,
    method: "post"
  });
};
// 角色权限配置
export const roleSetPermits = info => {
  return axios.request({
    url: "role/setPermits",
    data: info,
    method: "post"
  });
};